﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;

namespace NotebookS2
{
    public partial class Dashboard : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public Dashboard()
        {
            InitializeComponent();
        }

        public string ConnectionString { get; set; }

        private void SalesReport_Load(object sender, EventArgs e)
        {
            //E:\Projects\Rogemson\Software\NotebookS3\NotebookS2\Reports\SO1.rpt
            
        }

        private void tileSalesOrder_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            CRYSTAL_SO_LOG_PARAM oParamSOLog = new CRYSTAL_SO_LOG_PARAM();

            oParamSOLog.ConnectionString = this.ConnectionString;
            oParamSOLog.MdiParentForm = this.MdiParent;
            oParamSOLog.ShowDialog();
        }

        private void tileSalesInvoice_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            CRYSTAL_DR_LOG_PARAM oParamSOLog = new CRYSTAL_DR_LOG_PARAM();

            oParamSOLog.ConnectionString = this.ConnectionString;
            oParamSOLog.MdiParentForm = this.MdiParent;
            oParamSOLog.ShowDialog();
        }

        private void tileAgingReport_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            CRYSTAL_AR_AGING_PARAM oForm = new CRYSTAL_AR_AGING_PARAM();

            oForm.ConnectionString = this.ConnectionString;
            oForm.MdiParentForm = this;
            oForm.ShowDialog();
        }

        private void tileSalesPlotting_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            CRYSTAL_PLOTTING_PARAM oForm = new CRYSTAL_PLOTTING_PARAM();

            oForm.ConnectionString = this.ConnectionString;
            
            oForm.ShowDialog();
        }

        private void ribbon_Click(object sender, EventArgs e)
        {

        }
    }
}